package com.scheduling.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName employee_preferences
 */
@TableName(value ="employee_preferences")
public class EmployeePreferences implements Serializable {
    /**
     * 可选值：工作日偏好，工作时间偏好，班次时长偏好，可拓展
     */
    private String preferencesType;

    /**
     * 员工id，当员工没有选择对应的偏好类型时，标识对该类型无特殊偏好。
     */
    private String employeeId;

    /**
     * 
     */
    private String preferenceValue;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 可选值：工作日偏好，工作时间偏好，班次时长偏好，可拓展
     */
    public String getPreferencesType() {
        return preferencesType;
    }

    /**
     * 可选值：工作日偏好，工作时间偏好，班次时长偏好，可拓展
     */
    public void setPreferencesType(String preferencesType) {
        this.preferencesType = preferencesType;
    }

    /**
     * 员工id，当员工没有选择对应的偏好类型时，标识对该类型无特殊偏好。
     */
    public String getEmployeeId() {
        return employeeId;
    }

    /**
     * 员工id，当员工没有选择对应的偏好类型时，标识对该类型无特殊偏好。
     */
    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    /**
     * 
     */
    public String getPreferenceValue() {
        return preferenceValue;
    }

    /**
     * 
     */
    public void setPreferenceValue(String preferenceValue) {
        this.preferenceValue = preferenceValue;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EmployeePreferences other = (EmployeePreferences) that;
        return (this.getPreferencesType() == null ? other.getPreferencesType() == null : this.getPreferencesType().equals(other.getPreferencesType()))
            && (this.getEmployeeId() == null ? other.getEmployeeId() == null : this.getEmployeeId().equals(other.getEmployeeId()))
            && (this.getPreferenceValue() == null ? other.getPreferenceValue() == null : this.getPreferenceValue().equals(other.getPreferenceValue()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPreferencesType() == null) ? 0 : getPreferencesType().hashCode());
        result = prime * result + ((getEmployeeId() == null) ? 0 : getEmployeeId().hashCode());
        result = prime * result + ((getPreferenceValue() == null) ? 0 : getPreferenceValue().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", preferencesType=").append(preferencesType);
        sb.append(", employeeId=").append(employeeId);
        sb.append(", preferenceValue=").append(preferenceValue);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}